package com.ruoyi.basedata.domain;

import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 消息通知对象 finer_msg
 * 
 * @author ruoyi
 * @date 2024-10-25
 */
public class Msg extends BaseEntity
{
    private static final long serialVersionUID = -34016841924004920L;
    /**
     * 主键.
     */
    private Integer id;
    /**
     * 收件人角色id.
     */
    private Integer userId;

    private String title;
    /**
     * 消息内容.
     */
    private String content;
    /**
     * 是否已读(0-未读，1-已读).
     */
    private Integer status;

    /**
     * 创建时间.
     */
    private Date createDate;
    /**
     * 修改人.
     */
    private String modifyBy;

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    /**
     * 修改时间.
     */
    private Date modifyDate;
    /**
     * 是否删除(0:未删除 1:删除).
     */
    private Integer isDel;

    private int type;

    private String typeName;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    private String createStr;

    private String modifyStr;

    public String getCreateStr() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.createStr = formatter.format(this.createDate);
        return createStr;
    }

    public void setCreateStr(String createStr) {
        this.createStr = createStr;
    }

    public void setModifyStr(String modifyStr) {
        this.modifyStr = modifyStr;
    }

    public String getModifyStr() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.modifyStr = formatter.format(this.modifyDate);
        return modifyStr;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }
}
